﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace eCampus
{
    /// <summary>
    /// Formulario que mostrará una foto en zoom
    /// </summary>
    public partial class FormZoomFoto : Form
    {
        /// <summary>
        /// Constructor a partir de una imagen a mostrar
        /// </summary>
        /// <param name="imagenAMostrar"></param>
        public FormZoomFoto(Image imagenAMostrar)
        {
            InitializeComponent();
            pictureBoxMiFoto.Image = imagenAMostrar;
        }

        /// <summary>
        /// Para cerrar si error
        /// </summary>
        /// <param name="sender">pictureBoxInformaErro</param>
        /// <param name="e">click</param>
        private void pictureBoxInformaError_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        /// <summary>
        /// Si está en zoom se cierra
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pictureBoxMiFoto_Click(object sender, EventArgs e)
        {
            Dispose();
        }
    }
}
